');
$.each(data.invalids, function(i, n){
if(n.idref){
var $li=$('').append($('').attr('href', '#' + n.idref).append(n.message));
}else{
var $li=$('').append(n.message);
}
$invalids.append($li);
});
$response.append($invalids);
}
$response.attr('role', 'alert').focus();
}};
$.wpcf7SupportHtml5=function(){
var features={};
var input=document.createElement('input');
features.placeholder='placeholder' in input;
var inputTypes=['email', 'url', 'tel', 'number', 'range', 'date'];
$.each(inputTypes, function(index, value){
input.setAttribute('type', value);
features[value]=input.type!=='text';
});
return features;
};
$(function(){
_wpcf7.supportHtml5=$.wpcf7SupportHtml5();
$('div.wpcf7 > form').wpcf7InitForm();
});
})(jQuery);
(function ($, undefined){
"use strict";
$(function (){
$.GoPricing={
Init:function (){
this.$wrap=$('.gw-go');
this.fixWidth();
this.InitAnim();
this.equalize=this.$wrap.data('equalize');
this.InitMediaElementPlayer();
this.InitGoogleMap();
this.isIE=document.documentMode!=undefined&&document.documentMode >5 ? document.documentMode:false;
if(this.isIE){
this.$wrap.addClass('gw-go-ie');
if(this.isIE < 9) this.$wrap.addClass('gw-go-oldie');
};
if($.GoPricing!=undefined&&$.GoPricing.equalize){
this.EqualizeRows();
};
this.eventType=this.detectEvent();
this.timeout=[];
},
InitAnim: function(){
this.$wrap.each(function(i, obj){
$(obj).css('opacity', 1);
var $cols=$(".gw-go-col-wrap[data-col-anim]", this);
if($cols.length){
var tl=new TimelineLite({
paused: true,
onStart: function(){
var tw=this.getChildren(), i=tw.length;
while (i--) if(tw[i].vars.onUpdate) tw[i].vars.onUpdate();
}});
$cols.each(function(i, col){
var anim=$(col).data('col-anim')||{};
if(anim.trans){
anim.css.opacity /=100, anim.css.scaleX /=100, anim.css.scaleY /=100;
tl.add(TweenLite.from(col, anim.trans.duration/1000, {css: anim.css, ease: anim.trans.ease}), anim.trans.delay/1000);
}
if(anim.count){
var $price=$('[data-id=price]', col),
counter={ value:(anim.count.from||0) },
$amount=$price.find('[data-id=amount]'),
price=$price.data('price')||0,
currency=$price.data('currency')||{},
decimals=(price||'').toString().split('.')[1]||'',
decCnt=decimals.length;
if($price.data('trailing-zero')) decCnt=$price.data('decimal-no');
tl.add(TweenLite.to(counter, anim.count.duration/1000, {
value: price,
ease: anim.count.ease,
onUpdate: function(){
var c=counter.value
$amount.html(function(){
var parts=parseFloat(c).toFixed(decCnt).split('.');
parts[0]=parts[0].replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1"+(currency['thousand-sep']||' '));
parts[1]=parts[1] ?(( currency['decimal-sep']||'.') + parts[1]):'';
return parts[0] + parts[1];
});
},
}), anim.count.delay/1000);
}});
var $this=$(this).data('tl', tl);
$this.tablespy({offset: $this.data('scroll-offset')});
TweenLite.set(this, {perspective: '1000px'});
}});
},
showTooltip:function ($elem, content, top){
if($elem===undefined) return;
var $rowTooltip=$elem.find('.gw-go-tooltip-content'),
rowTooltipContent=$rowTooltip.length ? $rowTooltip.prop('outerHTML'):'',
$colWrap=$elem.closest('.gw-go-col-wrap'),
$col=$colWrap.find('.gw-go-col'),
$tooltip=$col.find('.gw-go-tooltip'),
colIndex=$colWrap.data('col-index'),
rIndex=$elem.data('row-index');
if(!$tooltip.length) $tooltip=$('').appendTo($col);
if($tooltip.data('index')!=rIndex){
$tooltip.removeClass('gw-go-tooltip-visible');
}else{
clearTimeout($.GoPricing.timeout[colIndex]);
}
if(rowTooltipContent!=''){
$tooltip.html(rowTooltipContent).data('index', rIndex)
var corr=$col.position().top;
setTimeout(function(){ $tooltip.addClass('gw-go-tooltip-visible').css('top', $elem.find('.gw-go-body-cell').offset().top - $col.closest('.gw-go-col-wrap').offset().top - $tooltip.outerHeight() - 16 - corr) }, 10);
}},
hideTooltip:function ($elem){
if($elem===undefined) return;
if($elem.hasClass('gw-go-tooltip')){
$elem.removeClass('gw-go-tooltip-visible');
}else{
var $colWrap=$elem.closest('.gw-go-col-wrap'),
$col=$colWrap.find('.gw-go-col'),
$tooltip=$col.find('.gw-go-tooltip'),
colIndex=$colWrap.data('col-index');
$.GoPricing.timeout[colIndex]=setTimeout(function(){ $tooltip.removeClass('gw-go-tooltip-visible'); }, 10);
}},
InitMediaElementPlayer:function (){
if(jQuery().mediaelementplayer&&$.GoPricing.$wrap.find('audio, video').length){
$.GoPricing.$wrap.find('audio, video').mediaelementplayer({
audioWidth: '100%',
videoWidth: '100%'
});
};},
InitGoogleMap:function (){
if(jQuery().goMap&&$.GoPricing.$wrap.find('.gw-go-gmap').length){
$.GoPricing.$wrap.find('.gw-go-gmap').each(function(index){
var $this=$(this);
$this.goMap($this.data('map'));
});
};},
loadImages:function($pricingTable){
if(!$pricingTable.data('images')||$pricingTable.data('imagesLoaded')) return;
var images=$pricingTable.data('images'),
ready=true;
for (var x=0; x < images.length; x++){
var image=images[x];
if(image.el.naturalWidth==0) ready=false;
}
if(ready){
$pricingTable.data('imagesLoaded', true)
this.EqualizeRows();
return;
}
setTimeout($.proxy(function(){
this.loadImages($pricingTable);
}, this), 100);
},
fixWidth:function(){
if('WebkitAppearance' in document.documentElement.style===false||window.StyleMedia) return;
for (var x=0; x < $.GoPricing.$wrap.length; x++){
var $pricingTable=$.GoPricing.$wrap.eq(x),
$cols=$pricingTable.find('.gw-go-col-wrap');
if($pricingTable.is(':hidden')||$pricingTable.offset().top>parseInt($(document).scrollTop()+window.innerHeight+500||$pricingTable.data('fix-width')===true)||$cols.length < 2) continue;
for (var i=0; i < $cols.length; i++){
var $col=$cols.eq(i),
fixedMaxWidth=parseInt($pricingTable.data('mw')),
maxWidth=Math.floor(parseFloat(window.getComputedStyle($col[0]).width));
if(!fixedMaxWidth||maxWidth < fixedMaxWidth){
$cols.css('max-width', 'none');
$cols.css('max-width', Math.floor(parseFloat(window.getComputedStyle($col[0]).width)));
}}
$pricingTable.data('fix-width', true);
}},
EqualizeRows:function (){
for (var x=0; x < $.GoPricing.$wrap.length; x++){
if($.GoPricing.$wrap.eq(x).is(':hidden')||$.GoPricing.$wrap.eq(x).offset().top>parseInt($(document).scrollTop()+window.innerHeight+500)||$.GoPricing.$wrap.eq(x).data('eq-ready')===true) continue;
var $pricingTable=$.GoPricing.$wrap.eq(x),
$colWrap=$pricingTable.find('.gw-go-col-wrap:visible'),
colCnt=$colWrap.length,
equalizeCnt=colCnt,
views=$pricingTable.data('views')!==undefined ? $pricingTable.data('views'):{};
if(!$pricingTable.data('images')&&!$pricingTable.data('imagesLoaded')){
var images=[];
if($pricingTable.data('equalize').body!=undefined){ $pricingTable.find('.gw-go-body li .gw-go-body-cell:visible img').each(function(index, el){ images.push({'ready':false, 'el':el }) });}
if($pricingTable.data('equalize').footer!=undefined){ $pricingTable.find('.gw-go-footer .gw-go-footer-row-inner:visible img').each(function(index, el){ images.push({'ready':false, 'el':el }) });}
if($pricingTable.data('equalize').column!=undefined){ $pricingTable.find('.gw-go-header img').each(function(index, el){ images.push({'ready':false, 'el':el }) });}
if(images.length) $pricingTable.data('images', images);
}
if($pricingTable.data('images')&&!$pricingTable.data('imagesLoaded')){
this.loadImages($pricingTable);
continue;
}
for (var key in views){
var mqSizes=[], mq='';
if(views[key].min!==undefined&&views[key].min!=='') mqSizes.push('(min-width:'+views[key].min+'px)');
if(views[key].max!==undefined&&views[key].max!=='') mqSizes.push('(max-width:'+views[key].max+'px)');
mq=mqSizes.join(' and ');
if(mq!='') if(window.matchMedia&&window.matchMedia(mq).matches){
equalizeCnt=views[key].cols!==undefined&&views[key].cols!==''&&views[key].cols <=colCnt ? views[key].cols:colCnt;
}}
if(equalizeCnt==1){
$pricingTable.find('.gw-go-body li .gw-go-body-cell').css('height', 'auto');
$pricingTable.find('.gw-go-col-wrap').css('height', 'auto');
$pricingTable.find('.gw-go-footer').css('height', 'auto');
continue;
}
for (var z=0; z=(z*equalizeCnt)&&i <=(z*equalizeCnt)+equalizeCnt-1){
var $currentCol=$colWrap.eq(i),
$row=$currentCol.find('.gw-go-body li .gw-go-body-cell:visible');
for (var rIndex=0; rIndex < $row.length; rIndex++){
var $currentRow=$row.eq(rIndex);
$currentRow.css('height', 'auto');
if(typeof rowHeights[rIndex]!=='undefined'){
if($currentRow.height() > rowHeights[rIndex]){
rowHeights[rIndex]=$currentRow.height();
}}else{
rowHeights[rIndex]=$currentRow.height();
}}
}}
for (var i=0; i < colCnt; i++){
var $currentCol=$colWrap.eq(i),
$row=$currentCol.find('.gw-go-body li .gw-go-body-cell:visible');
if(i >=(z*equalizeCnt)&&i <=(z*equalizeCnt)+equalizeCnt-1){
for (var rIndex=0; rIndex < $row.length; rIndex++){
var $currentRow=$row.eq(rIndex);
$currentRow.css('height', rowHeights[rIndex]);
}}
}}
if($pricingTable.data('equalize').footer!=undefined){
for (var i=0; i < colCnt; i++){
if(i >=(z*equalizeCnt)&&i <=(z*equalizeCnt)+equalizeCnt-1){
var $currentCol=$colWrap.eq(i),
$row=$currentCol.find('.gw-go-footer .gw-go-footer-row-inner:visible');
for (var rIndex=0; rIndex < $row.length; rIndex++){
var $currentRow=$row.eq(rIndex);
$currentRow.css('height', 'auto');
if(typeof footerHeights[rIndex]!=='undefined'){
if($currentRow.height() > footerHeights[rIndex]){
footerHeights[rIndex]=$currentRow.height();
}}else{
footerHeights[rIndex]=$currentRow.height();
}}
}}
for (var i=0; i < colCnt; i++){
var $currentCol=$colWrap.eq(i),
$row=$currentCol.find('.gw-go-footer .gw-go-footer-row-inner:visible');
if(i >=(z*equalizeCnt)&&i <=(z*equalizeCnt)+equalizeCnt-1){
for (var rIndex=0; rIndex < $row.length; rIndex++){
var $currentRow=$row.eq(rIndex);
$currentRow.css('height', footerHeights[rIndex]);
}}
}}
if($pricingTable.data('equalize').column!=undefined){
for (var i=0; i < colCnt; i++){
var $currentCol=$colWrap.eq(i);
if(i >=(z*equalizeCnt)&&i <=(z*equalizeCnt)+equalizeCnt-1){
$currentCol.css('height', 'auto');
if(typeof colHeights[z]!=='undefined'){
if($currentCol.outerHeight(true) > colHeights[z]){
colHeights[z]=$currentCol.outerHeight(false);
}}else{
colHeights[z]=$currentCol.outerHeight(false);
}}
}
for (var i=0; i < colCnt; i++){
var $currentCol=$colWrap.eq(i);
if(i >=(z*equalizeCnt)&&i <=(z*equalizeCnt)+equalizeCnt-1){
$currentCol.css('height', colHeights[z]);
}}
}}
}},
detectEvent:function(){
var eventType='mouseenter mouseleave';
if('ontouchstart' in window){
eventType='touchstart';
}else if(window.navigator.pointerEnabled&&navigator.msMaxTouchPoints){
eventType="pointerdown";
}else if(window.navigator.msPointerEnabled&&navigator.msMaxTouchPoints){
eventType="MSPointerDown";
}
return eventType;
}};
$.GoPricing.Init();
$(window).on('scroll', function(){
$.GoPricing.EqualizeRows();
});
$.GoPricing.$wrap.delegate('span.gw-go-btn', 'click', function(){
var $this=$(this);
if($this.find('form').length){ $this.find('form').submit(); };});
$.GoPricing.$wrap.on('mouseenter mouseleave', '.gw-go-tooltip', function(e){
var $this=$(this),
$colWrap=$this.closest('.gw-go-col-wrap'),
colIndex=$colWrap.data('col-index');
if(e.type=='mouseenter'){
clearTimeout($.GoPricing.timeout[colIndex]);
}else{
$.GoPricing.timeout[colIndex]=setTimeout(function(){ $.GoPricing.hideTooltip($this); }, 10);
}});
$.GoPricing.$wrap.on('mouseenter mouseleave', 'ul.gw-go-body > li', function(e){
var $this=$(this);
if(e.type=='mouseenter'){
$.GoPricing.showTooltip($this);
}else{
$.GoPricing.hideTooltip($this);
}});
$('body').on($.GoPricing.eventType, '.gw-go-col-wrap', function(e){
var $this=$(this);
if(e.type=='mouseenter'){
$this.addClass('gw-go-curr');
}else if(e.type=='mouseleave'){
$this.removeClass('gw-go-curr');
}
if(e.type=='mouseenter'&&!$this.hasClass('gw-go-disable-hover')){
$this.addClass('gw-go-hover').siblings(':not(.gw-go-disable-hover)').removeClass('gw-go-hover');
$this.closest('.gw-go').addClass('gw-go-hover');
}else if(e.type=='mouseleave'&&!$this.hasClass('gw-go-disable-hover')){
$this.removeClass('gw-go-hover');
$this.closest('.gw-go').find('[data-current="1"]:not(.gw-go-disable-hover)').addClass('gw-go-hover');
$this.closest('.gw-go').removeClass('gw-go-hover')
}else if(!$this.hasClass('gw-go-disable-hover')){
$this.closest('.gw-go').addClass('gw-go-hover')
$this.addClass('gw-go-hover').siblings(':not(.gw-go-disable-hover)').removeClass('gw-go-hover');
};});
if(typeof jQuery.goMap!=='undefined'&&$.GoPricing.$wrap.find('.gw-go-gmap').length){
var GoPricing_MapResize=false;
$(window).on('resize', function(e){
if(GoPricing_MapResize){ clearTimeout(GoPricing_MapResize); }
GoPricing_MapResize=setTimeout(function(){
$.GoPricing.$wrap.find('.gw-go-gmap').each(function(index, element){
});
}, 400);
});
};
$(window).on('resize load', function(e){
for (var x=0; x < $.GoPricing.$wrap.length; x++){
$.GoPricing.$wrap.eq(x).data('eq-ready', false);
$.GoPricing.$wrap.eq(x).data('fix-width', false);
}
$.GoPricing.fixWidth();
$.GoPricing.EqualizeRows();
});
$(window).on("scrollEnter scrollLeave", function(e, spy){
var $target=$(e.target);
var repeat=$target.data("anim-repeat")||Infinity;
if(e.type=="scrollEnter"){
if(spy.enters <=repeat) $target.data("tl").play();
}else{
if(spy.enters < repeat) $target.data("tl").stop().seek(0);
}});
});
}(jQuery));
;(function($, window, undefined){
var $elems=$();
var $cont=$(window)
.on("resize.tablespy", onResize)
.on("load.tablespy", onResize)
.on("scroll.tablespy load.tablespy", onScroll);
function onScroll(){
if(!$elems.length) return;
var height=$cont.height();
var y=$cont.scrollTop();
$elems.each(function(){
var $elem=$(this);
var o=$elem.data('tablespy');
var offset=o.rowHeight * o.offset / 100;
if(Math.floor((o.rowHeight+height)/2) < offset) offset=Math.floor((o.rowHeight+height)/2)-20;
if(height + y-offset >=o.min&&y+offset <=o.max){
if(!o.inside){
o.inside=true;
o.enters++;
$elem.trigger("scrollEnter", {scrollTop: y, enters: o.enters, leaves: o.leaves});
}
$elem.trigger("scrollTick", {scrollTop: y, enters: o.enters, leaves: o.leaves});
}
if(o.inside&&!(height + y >=o.min&&y <=o.max)){
o.inside=false;
o.leaves++;
$elem.trigger("scrollLeave", {scrollTop: y, enters: o.enters, leaves: o.leaves});
}});
}
function onResize(){
$elems.each(function(){
var $elem=$(this);
var o=$elem.data("tablespy");
o.min=$elem.offset().top;
o.max=$elem.outerHeight() + o.min;
o.rowHeight=$elem.children(":visible:first").outerHeight();
});
}
$.fn.tablespy=function(options){
var defaults={
offset: 0,
enters: 0,
leaves: 0,
inside: false
};
return this.each(function(){
var $elem=$(this);
var top=$elem.offset().top;
$elem.data("tablespy", $.extend({
min: top,
max: top + $elem.outerHeight(),
rowHeight: $elem.children(":visible:first").outerHeight()
}, defaults, options));
$elems.push(this);
});
};})(jQuery, window);
!function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);
function vc_js(){vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_googleplus(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_google_fonts(),vc_gridBehaviour(),vc_rowBehaviour(),vc_googleMapsPointer(),vc_ttaActivation(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}function getSizeName(){var screen_w=jQuery(window).width();return screen_w>1170?"desktop_wide":screen_w>960&&1169>screen_w?"desktop":screen_w>768&&959>screen_w?"tablet":screen_w>300&&767>screen_w?"mobile":300>screen_w?"mobile_portrait":""}function loadScript(url,$obj,callback){var script=document.createElement("script");script.type="text/javascript",script.readyState&&(script.onreadystatechange=function(){("loaded"===script.readyState||"complete"===script.readyState)&&(script.onreadystatechange=null,callback())}),script.src=url,$obj.get(0).appendChild(script)}function vc_ttaActivation(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var $=window.jQuery,ui={};ui.newPanel=$(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,ui)})}function vc_accordionActivate(event,ui){if(ui.newPanel.length&&ui.newHeader.length){var $pie_charts=ui.newPanel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=ui.newPanel.find(".vc_round-chart"),$line_charts=ui.newPanel.find(".vc_line-chart"),$carousel=ui.newPanel.find('[data-ride="vc_carousel"]');"undefined"!=typeof jQuery.fn.isotope&&ui.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),vc_carouselBehaviour(ui.newPanel),vc_plugin_flexslider(ui.newPanel),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui.newPanel.parents(".isotope").length&&ui.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}}function initVideoBackgrounds(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}function vc_initVideoBackgrounds(){jQuery(".vc_row").each(function(){var youtubeUrl,youtubeId,$row=jQuery(this);$row.data("vcVideoBg")?(youtubeUrl=$row.data("vcVideoBg"),youtubeId=vcExtractYoutubeId(youtubeUrl),youtubeId&&($row.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground($row,youtubeId)),jQuery(window).on("grid:items:added",function(event,$grid){$row.has($grid).length&&vcResizeVideoBackground($row)})):$row.find(".vc_video-bg").remove()})}function insertYoutubeVideoAsBackground($element,youtubeId,counter){if("undefined"==typeof YT.Player)return counter="undefined"==typeof counter?0:counter,counter>100?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground($element,youtubeId,counter++)},100);var $container=$element.prepend('
').find(".inner");new YT.Player($container[0],{width:"100%",height:"100%",videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).bind("resize",function(){vcResizeVideoBackground($element)})}function vcResizeVideoBackground($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight(),ratio1=16,ratio2=9;ratio1/ratio2>containerW/containerH?(iframeW=containerH*(ratio1/ratio2),iframeH=containerH,marginLeft=-Math.round((iframeW-containerW)/2)+"px",marginTop=-Math.round((iframeH-containerH)/2)+"px",iframeW+="px",iframeH+="px"):(iframeW=containerW,iframeH=containerW*(ratio2/ratio1),marginTop=-Math.round((iframeH-containerH)/2)+"px",marginLeft=-Math.round((iframeW-containerW)/2)+"px",iframeW+="px",iframeH+="px"),$element.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})}function vcExtractYoutubeId(url){if("undefined"==typeof url)return!1;var id=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);return null!==id?id[1]:!1}function vc_googleMapsPointer(){var $=window.jQuery,$wpbGmapsWidget=$(".wpb_gmaps_widget");$wpbGmapsWidget.click(function(){$("iframe",this).css("pointer-events","auto")}),$wpbGmapsWidget.mouseleave(function(){$("iframe",this).css("pointer-events","none")}),$(".wpb_gmaps_widget iframe").css("pointer-events","none")}document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",function(){for(var prefix=["-webkit-","-moz-","-ms-","-o-",""],i=0;iparseInt(ver[1]);$call.each(function(index){var $tabs,interval=jQuery(this).attr("data-interval"),tabs_array=[];if($tabs=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(event,ui){wpb_prepare_tab_content(event,ui)},beforeActivate:function(event,ui){1!==ui.newPanel.index()&&ui.newPanel.find(".vc_pie_chart:not(.vc_ready)")},activate:function(event,ui){wpb_prepare_tab_content(event,ui)}}),interval&&interval>0)try{$tabs.tabs("rotate",1e3*interval)}catch(e){window.console&&window.console.log&&console.log(e)}jQuery(this).find(".wpb_tab").each(function(){tabs_array.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").click(function(e){return e.preventDefault(),old_version?$tabs.tabs("select",jQuery("a",this).attr("href")):$tabs.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").click(function(e){if(e.preventDefault(),old_version){var index=$tabs.tabs("option","selected");jQuery(this).parent().hasClass("wpb_next_slide")?index++:index--,0>index?index=$tabs.tabs("length")-1:index>=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)}else{var index=$tabs.tabs("option","active"),length=$tabs.find(".wpb_tab").length;index=jQuery(this).parent().hasClass("wpb_next_slide")?index+1>=length?0:index+1:0>index-1?length-1:index-1,$tabs.tabs("option","active",index)}})})}}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $tabs,$this=jQuery(this),active_tab=($this.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0 div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){"undefined"!=typeof jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}}),!0===$this.data("vcDisableKeydown")&&($tabs.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:"undefined"==typeof layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).click(function(e){e.preventDefault();var $thumbs=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),$thumbs.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).bind("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){var $carousel=$parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel");$carousel.each(function(){var $this=jQuery(this);if(!0!==$this.data("carousel_enabled")&&$this.is(":visible")){$this.data("carousel_enabled",!0);var carousel_speed=(getColumnsCount(jQuery(this)),500);jQuery(this).hasClass("columns_count_1")&&(carousel_speed=900);var carousele_li=jQuery(this).find(".wpb_thumbnails-fluid li");carousele_li.css({"margin-right":carousele_li.css("margin-left"),"margin-left":0});var fluid_ul=jQuery(this).find("ul.wpb_thumbnails-fluid");fluid_ul.width(fluid_ul.width()+300),jQuery(window).resize(function(){var before_resize=screen_size;screen_size=getSizeName(),before_resize!=screen_size&&window.setTimeout("location.reload()",20)})}})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,this_element=jQuery(this);if(this_element.hasClass("wpb_slider_nivo")){var sliderSpeed=800,sliderTimeout=1e3*this_element.attr("data-interval");0===sliderTimeout&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:sliderSpeed,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})}else this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){var url=location.href,hashtag=url.indexOf("#!prettyPhoto")?!0:!1;hashtag&&(location.hash="")},social_tools:""})}catch(err){window.console&&window.console.log&&console.log(err)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){function fullWidthRow(){var $elements=$('[data-vc-full-width="true"]');$.each($elements,function(key,item){var $el=$(this);$el.addClass("vc_hidden");var $el_full=$el.next(".vc_row-full-width");if($el_full.length||($el_full=$el.parent().next(".vc_row-full-width")),$el_full.length){var el_margin_left=parseInt($el.css("margin-left"),10),el_margin_right=parseInt($el.css("margin-right"),10),offset=0-$el_full.offset().left-el_margin_left,width=$(window).width();if($el.css({position:"relative",left:offset,"box-sizing":"border-box",width:$(window).width()}),!$el.data("vcStretchContent")){var padding=-1*offset;0>padding&&(padding=0);var paddingRight=width-padding-$el_full.width()+el_margin_left+el_margin_right;0>paddingRight&&(paddingRight=0),$el.css({"padding-left":padding+"px","padding-right":paddingRight+"px"})}$el.attr("data-vc-full-width-init","true"),$el.removeClass("vc_hidden")}}),$(document).trigger("vc-full-width-row",$elements)}function parallaxRow(){var vcSkrollrOptions,callSkrollInit=!1;return window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSpeed,skrollrSize,skrollrStart,skrollrEnd,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),$parallaxElement=$("").addClass("vc_parallax-inner").appendTo($(this)),$parallaxElement.height(skrollrSize+"%"),parallaxImage=$(this).data("vcParallaxImage"),youtubeId=vcExtractYoutubeId(parallaxImage),youtubeId?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):"undefined"!=typeof parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),skrollrSpeed=skrollrSize-100,skrollrStart=-skrollrSpeed,skrollrEnd=0,$parallaxElement.attr("data-bottom-top","top: "+skrollrStart+"%;").attr("data-top-bottom","top: "+skrollrEnd+"%;")}),callSkrollInit&&window.skrollr?(vcSkrollrOptions={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(vcSkrollrOptions),window.vcParallaxSkroll):!1}function fullHeightRow(){var $element=$(".vc_row-o-full-height:first");if($element.length){var $window,windowHeight,offsetTop,fullHeight;$window=$(window),windowHeight=$window.height(),offsetTop=$element.offset().top,windowHeight>offsetTop&&(fullHeight=100-offsetTop/(windowHeight/100),$element.css("min-height",fullHeight+"vh"))}$(document).trigger("vc-full-height-row",$element)}function fixIeFlexbox(){var ua=window.navigator.userAgent,msie=ua.indexOf("MSIE ");(msie>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".vc_row-o-full-height").each(function(){"flex"===$(this).css("display")&&$(this).wrap('')})}var $=window.jQuery;$(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",fullWidthRow).on("resize.vcRowBehaviour",fullHeightRow),fullWidthRow(),fullHeightRow(),fixIeFlexbox(),vc_initVideoBackgrounds(),parallaxRow()}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(el){for(var find=!1,i=1;!1===find;){if(el.hasClass("columns_count_"+i))return find=!0,i;i++}});var screen_size=getSizeName();"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(event,ui){var $ui_panel,$google_maps,panel=ui.panel||ui.newPanel,$pie_charts=panel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=panel.find(".vc_round-chart"),$line_charts=panel.find(".vc_line-chart"),$carousel=panel.find('[data-ride="vc_carousel"]');if(vc_carouselBehaviour(),vc_plugin_flexslider(panel),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),$ui_panel=panel.find(".isotope, .wpb_image_grid_ul"),$google_maps=panel.find(".wpb_gmaps_widget"),0<$ui_panel.length&&$ui_panel.isotope("layout"),$google_maps.length&&!$google_maps.is(".map_ready")){var $frame=$google_maps.find("iframe");$frame.attr("src",$frame.attr("src")),$google_maps.addClass("map_ready")}panel.parents(".isotope").length&&panel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),"function"!=typeof window.vc_googleMapsPointer,jQuery(document).ready(function($){window.vc_js()});
!function(a,b,c){"use strict";function d(c){if(e=b.documentElement,f=b.body,T(),ha=this,c=c||{},ma=c.constants||{},c.easing)for(var d in c.easing)W[d]=c.easing[d];ta=c.edgeStrategy||"set",ka={beforerender:c.beforerender,render:c.render,keyframe:c.keyframe},la=c.forceHeight!==!1,la&&(Ka=c.scale||1),na=c.mobileDeceleration||y,pa=c.smoothScrolling!==!1,qa=c.smoothScrollingDuration||A,ra={targetTop:ha.getScrollTop()},Sa=(c.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||a.opera)})(),Sa?(ja=b.getElementById(c.skrollrBody||z),ja&&ga(),X(),Ea(e,[s,v],[t])):Ea(e,[s,u],[t]),ha.refresh(),wa(a,"resize orientationchange",function(){var a=e.clientWidth,b=e.clientHeight;(b!==Pa||a!==Oa)&&(Pa=b,Oa=a,Qa=!0)});var g=U();return function h(){$(),va=g(h)}(),ha}var e,f,g={get:function(){return ha},init:function(a){return ha||new d(a)},VERSION:"0.6.29"},h=Object.prototype.hasOwnProperty,i=a.Math,j=a.getComputedStyle,k="touchstart",l="touchmove",m="touchcancel",n="touchend",o="skrollable",p=o+"-before",q=o+"-between",r=o+"-after",s="skrollr",t="no-"+s,u=s+"-desktop",v=s+"-mobile",w="linear",x=1e3,y=.004,z="skrollr-body",A=200,B="start",C="end",D="center",E="bottom",F="___skrollable_id",G=/^(?:input|textarea|button|select)$/i,H=/^\s+|\s+$/g,I=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,J=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,K=/^(@?[a-z\-]+)\[(\w+)\]$/,L=/-([a-z0-9_])/g,M=function(a,b){return b.toUpperCase()},N=/[\-+]?[\d]*\.?[\d]+/g,O=/\{\?\}/g,P=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,Q=/[a-z\-]+-gradient/g,R="",S="",T=function(){var a=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(j){var b=j(f,null);for(var c in b)if(R=c.match(a)||+c==c&&b[c].match(a))break;if(!R)return void(R=S="");R=R[0],"-"===R.slice(0,1)?(S=R,R={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[R]):S="-"+R.toLowerCase()+"-"}},U=function(){var b=a.requestAnimationFrame||a[R.toLowerCase()+"RequestAnimationFrame"],c=Ha();return(Sa||!b)&&(b=function(b){var d=Ha()-c,e=i.max(0,1e3/60-d);return a.setTimeout(function(){c=Ha(),b()},e)}),b},V=function(){var b=a.cancelAnimationFrame||a[R.toLowerCase()+"CancelAnimationFrame"];return(Sa||!b)&&(b=function(b){return a.clearTimeout(b)}),b},W={begin:function(){return 0},end:function(){return 1},linear:function(a){return a},quadratic:function(a){return a*a},cubic:function(a){return a*a*a},swing:function(a){return-i.cos(a*i.PI)/2+.5},sqrt:function(a){return i.sqrt(a)},outCubic:function(a){return i.pow(a-1,3)+1},bounce:function(a){var b;if(.5083>=a)b=3;else if(.8489>=a)b=9;else if(.96208>=a)b=27;else{if(!(.99981>=a))return 1;b=91}return 1-i.abs(3*i.cos(a*b*1.028)/b)}};d.prototype.refresh=function(a){var d,e,f=!1;for(a===c?(f=!0,ia=[],Ra=0,a=b.getElementsByTagName("*")):a.length===c&&(a=[a]),d=0,e=a.length;e>d;d++){var g=a[d],h=g,i=[],j=pa,k=ta,l=!1;if(f&&F in g&&delete g[F],g.attributes){for(var m=0,n=g.attributes.length;n>m;m++){var p=g.attributes[m];if("data-anchor-target"!==p.name)if("data-smooth-scrolling"!==p.name)if("data-edge-strategy"!==p.name)if("data-emit-events"!==p.name){var q=p.name.match(I);if(null!==q){var r={props:p.value,element:g,eventType:p.name.replace(L,M)};i.push(r);var s=q[1];s&&(r.constant=s.substr(1));var t=q[2];/p$/.test(t)?(r.isPercentage=!0,r.offset=(0|t.slice(0,-1))/100):r.offset=0|t;var u=q[3],v=q[4]||u;u&&u!==B&&u!==C?(r.mode="relative",r.anchors=[u,v]):(r.mode="absolute",u===C?r.isEnd=!0:r.isPercentage||(r.offset=r.offset*Ka))}}else l=!0;else k=p.value;else j="off"!==p.value;else if(h=b.querySelector(p.value),null===h)throw'Unable to find anchor target "'+p.value+'"'}if(i.length){var w,x,y;!f&&F in g?(y=g[F],w=ia[y].styleAttr,x=ia[y].classAttr):(y=g[F]=Ra++,w=g.style.cssText,x=Da(g)),ia[y]={element:g,styleAttr:w,classAttr:x,anchorTarget:h,keyFrames:i,smoothScrolling:j,edgeStrategy:k,emitEvents:l,lastFrameIndex:-1},Ea(g,[o],[])}}}for(Aa(),d=0,e=a.length;e>d;d++){var z=ia[a[d][F]];z!==c&&(_(z),ba(z))}return ha},d.prototype.relativeToAbsolute=function(a,b,c){var d=e.clientHeight,f=a.getBoundingClientRect(),g=f.top,h=f.bottom-f.top;return b===E?g-=d:b===D&&(g-=d/2),c===E?g+=h:c===D&&(g+=h/2),g+=ha.getScrollTop(),g+.5|0},d.prototype.animateTo=function(a,b){b=b||{};var d=Ha(),e=ha.getScrollTop(),f=b.duration===c?x:b.duration;return oa={startTop:e,topDiff:a-e,targetTop:a,duration:f,startTime:d,endTime:d+f,easing:W[b.easing||w],done:b.done},oa.topDiff||(oa.done&&oa.done.call(ha,!1),oa=c),ha},d.prototype.stopAnimateTo=function(){oa&&oa.done&&oa.done.call(ha,!0),oa=c},d.prototype.isAnimatingTo=function(){return!!oa},d.prototype.isMobile=function(){return Sa},d.prototype.setScrollTop=function(b,c){return sa=c===!0,Sa?Ta=i.min(i.max(b,0),Ja):a.scrollTo(0,b),ha},d.prototype.getScrollTop=function(){return Sa?Ta:a.pageYOffset||e.scrollTop||f.scrollTop||0},d.prototype.getMaxScrollTop=function(){return Ja},d.prototype.on=function(a,b){return ka[a]=b,ha},d.prototype.off=function(a){return delete ka[a],ha},d.prototype.destroy=function(){var a=V();a(va),ya(),Ea(e,[t],[s,u,v]);for(var b=0,d=ia.length;d>b;b++)fa(ia[b].element);e.style.overflow=f.style.overflow="",e.style.height=f.style.height="",ja&&g.setStyle(ja,"transform","none"),ha=c,ja=c,ka=c,la=c,Ja=0,Ka=1,ma=c,na=c,La="down",Ma=-1,Oa=0,Pa=0,Qa=!1,oa=c,pa=c,qa=c,ra=c,sa=c,Ra=0,ta=c,Sa=!1,Ta=0,ua=c};var X=function(){var d,g,h,j,o,p,q,r,s,t,u,v;wa(e,[k,l,m,n].join(" "),function(a){var e=a.changedTouches[0];for(j=a.target;3===j.nodeType;)j=j.parentNode;switch(o=e.clientY,p=e.clientX,t=a.timeStamp,G.test(j.tagName)||a.preventDefault(),a.type){case k:d&&d.blur(),ha.stopAnimateTo(),d=j,g=q=o,h=p,s=t;break;case l:G.test(j.tagName)&&b.activeElement!==j&&a.preventDefault(),r=o-q,v=t-u,ha.setScrollTop(Ta-r,!0),q=o,u=t;break;default:case m:case n:var f=g-o,w=h-p,x=w*w+f*f;if(49>x){if(!G.test(d.tagName)){d.focus();var y=b.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,a.view,1,e.screenX,e.screenY,e.clientX,e.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,null),d.dispatchEvent(y)}return}d=c;var z=r/v;z=i.max(i.min(z,3),-3);var A=i.abs(z/na),B=z*A+.5*na*A*A,C=ha.getScrollTop()-B,D=0;C>Ja?(D=(Ja-C)/B,C=Ja):0>C&&(D=-C/B,C=0),A*=1-D,ha.animateTo(C+.5|0,{easing:"outCubic",duration:A})}}),a.scrollTo(0,0),e.style.overflow=f.style.overflow="hidden"},Y=function(){var a,b,c,d,f,g,h,j,k,l,m,n=e.clientHeight,o=Ba();for(j=0,k=ia.length;k>j;j++)for(a=ia[j],b=a.element,c=a.anchorTarget,d=a.keyFrames,f=0,g=d.length;g>f;f++)h=d[f],l=h.offset,m=o[h.constant]||0,h.frame=l,h.isPercentage&&(l*=n,h.frame=l),"relative"===h.mode&&(fa(b),h.frame=ha.relativeToAbsolute(c,h.anchors[0],h.anchors[1])-l,fa(b,!0)),h.frame+=m,la&&!h.isEnd&&h.frame>Ja&&(Ja=h.frame);for(Ja=i.max(Ja,Ca()),j=0,k=ia.length;k>j;j++){for(a=ia[j],d=a.keyFrames,f=0,g=d.length;g>f;f++)h=d[f],m=o[h.constant]||0,h.isEnd&&(h.frame=Ja-h.offset+m);a.keyFrames.sort(Ia)}},Z=function(a,b){for(var c=0,d=ia.length;d>c;c++){var e,f,i=ia[c],j=i.element,k=i.smoothScrolling?a:b,l=i.keyFrames,m=l.length,n=l[0],s=l[l.length-1],t=ks.frame,v=t?n:s,w=i.emitEvents,x=i.lastFrameIndex;if(t||u){if(t&&-1===i.edge||u&&1===i.edge)continue;switch(t?(Ea(j,[p],[r,q]),w&&x>-1&&(za(j,n.eventType,La),i.lastFrameIndex=-1)):(Ea(j,[r],[p,q]),w&&m>x&&(za(j,s.eventType,La),i.lastFrameIndex=m)),i.edge=t?-1:1,i.edgeStrategy){case"reset":fa(j);continue;case"ease":k=v.frame;break;default:case"set":var y=v.props;for(e in y)h.call(y,e)&&(f=ea(y[e].value),0===e.indexOf("@")?j.setAttribute(e.substr(1),f):g.setStyle(j,e,f));continue}}else 0!==i.edge&&(Ea(j,[o,q],[p,r]),i.edge=0);for(var z=0;m-1>z;z++)if(k>=l[z].frame&&k<=l[z+1].frame){var A=l[z],B=l[z+1];for(e in A.props)if(h.call(A.props,e)){var C=(k-A.frame)/(B.frame-A.frame);C=A.props[e].easing(C),f=da(A.props[e].value,B.props[e].value,C),f=ea(f),0===e.indexOf("@")?j.setAttribute(e.substr(1),f):g.setStyle(j,e,f)}w&&x!==z&&("down"===La?za(j,A.eventType,La):za(j,B.eventType,La),i.lastFrameIndex=z);break}}},$=function(){Qa&&(Qa=!1,Aa());var a,b,d=ha.getScrollTop(),e=Ha();if(oa)e>=oa.endTime?(d=oa.targetTop,a=oa.done,oa=c):(b=oa.easing((e-oa.startTime)/oa.duration),d=oa.startTop+b*oa.topDiff|0),ha.setScrollTop(d,!0);else if(!sa){var f=ra.targetTop-d;f&&(ra={startTop:Ma,topDiff:d-Ma,targetTop:d,startTime:Na,endTime:Na+qa}),e<=ra.endTime&&(b=W.sqrt((e-ra.startTime)/qa),d=ra.startTop+b*ra.topDiff|0)}if(sa||Ma!==d){La=d>Ma?"down":Ma>d?"up":La,sa=!1;var h={curTop:d,lastTop:Ma,maxTop:Ja,direction:La},i=ka.beforerender&&ka.beforerender.call(ha,h);i!==!1&&(Z(d,ha.getScrollTop()),Sa&&ja&&g.setStyle(ja,"transform","translate(0, "+-Ta+"px) "+ua),Ma=d,ka.render&&ka.render.call(ha,h)),a&&a.call(ha,!1)}Na=e},_=function(a){for(var b=0,c=a.keyFrames.length;c>b;b++){for(var d,e,f,g,h=a.keyFrames[b],i={};null!==(g=J.exec(h.props));)f=g[1],e=g[2],d=f.match(K),null!==d?(f=d[1],d=d[2]):d=w,e=e.indexOf("!")?aa(e):[e.slice(1)],i[f]={value:e,easing:W[d]};h.props=i}},aa=function(a){var b=[];return P.lastIndex=0,a=a.replace(P,function(a){return a.replace(N,function(a){return a/255*100+"%"})}),S&&(Q.lastIndex=0,a=a.replace(Q,function(a){return S+a})),a=a.replace(N,function(a){return b.push(+a),"{?}"}),b.unshift(a),b},ba=function(a){var b,c,d={};for(b=0,c=a.keyFrames.length;c>b;b++)ca(a.keyFrames[b],d);for(d={},b=a.keyFrames.length-1;b>=0;b--)ca(a.keyFrames[b],d)},ca=function(a,b){var c;for(c in b)h.call(a.props,c)||(a.props[c]=b[c]);for(c in a.props)b[c]=a.props[c]},da=function(a,b,c){var d,e=a.length;if(e!==b.length)throw"Can't interpolate between \""+a[0]+'" and "'+b[0]+'"';var f=[a[0]];for(d=1;e>d;d++)f[d]=a[d]+(b[d]-a[d])*c;return f},ea=function(a){var b=1;return O.lastIndex=0,a[0].replace(O,function(){return a[b++]})},fa=function(a,b){a=[].concat(a);for(var c,d,e=0,f=a.length;f>e;e++)d=a[e],c=ia[d[F]],c&&(b?(d.style.cssText=c.dirtyStyleAttr,Ea(d,c.dirtyClassAttr)):(c.dirtyStyleAttr=d.style.cssText,c.dirtyClassAttr=Da(d),d.style.cssText=c.styleAttr,Ea(d,c.classAttr)))},ga=function(){ua="translateZ(0)",g.setStyle(ja,"transform",ua);var a=j(ja),b=a.getPropertyValue("transform"),c=a.getPropertyValue(S+"transform"),d=b&&"none"!==b||c&&"none"!==c;d||(ua="")};g.setStyle=function(a,b,c){var d=a.style;if(b=b.replace(L,M).replace("-",""),"zIndex"===b)isNaN(c)?d[b]=c:d[b]=""+(0|c);else if("float"===b)d.styleFloat=d.cssFloat=c;else try{R&&(d[R+b.slice(0,1).toUpperCase()+b.slice(1)]=c),d[b]=c}catch(e){}};var ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa=g.addEvent=function(b,c,d){var e=function(b){return b=b||a.event,b.target||(b.target=b.srcElement),b.preventDefault||(b.preventDefault=function(){b.returnValue=!1,b.defaultPrevented=!0}),d.call(this,b)};c=c.split(" ");for(var f,g=0,h=c.length;h>g;g++)f=c[g],b.addEventListener?b.addEventListener(f,d,!1):b.attachEvent("on"+f,e),Ua.push({element:b,name:f,listener:d})},xa=g.removeEvent=function(a,b,c){b=b.split(" ");for(var d=0,e=b.length;e>d;d++)a.removeEventListener?a.removeEventListener(b[d],c,!1):a.detachEvent("on"+b[d],c)},ya=function(){for(var a,b=0,c=Ua.length;c>b;b++)a=Ua[b],xa(a.element,a.name,a.listener);Ua=[]},za=function(a,b,c){ka.keyframe&&ka.keyframe.call(ha,a,b,c)},Aa=function(){var a=ha.getScrollTop();Ja=0,la&&!Sa&&(f.style.height=""),Y(),la&&!Sa&&(f.style.height=Ja+e.clientHeight+"px"),Sa?ha.setScrollTop(i.min(ha.getScrollTop(),Ja)):ha.setScrollTop(a,!0),sa=!0},Ba=function(){var a,b,c=e.clientHeight,d={};for(a in ma)b=ma[a],"function"==typeof b?b=b.call(ha):/p$/.test(b)&&(b=b.slice(0,-1)/100*c),d[a]=b;return d},Ca=function(){var a,b=0;return ja&&(b=i.max(ja.offsetHeight,ja.scrollHeight)),a=i.max(b,f.scrollHeight,f.offsetHeight,e.scrollHeight,e.offsetHeight,e.clientHeight),a-e.clientHeight},Da=function(b){var c="className";return a.SVGElement&&b instanceof a.SVGElement&&(b=b[c],c="baseVal"),b[c]},Ea=function(b,d,e){var f="className";if(a.SVGElement&&b instanceof a.SVGElement&&(b=b[f],f="baseVal"),e===c)return void(b[f]=d);for(var g=b[f],h=0,i=e.length;i>h;h++)g=Ga(g).replace(Ga(e[h])," ");g=Fa(g);for(var j=0,k=d.length;k>j;j++)-1===Ga(g).indexOf(Ga(d[j]))&&(g+=" "+d[j]);b[f]=Fa(g)},Fa=function(a){return a.replace(H,"")},Ga=function(a){return" "+a+" "},Ha=Date.now||function(){return+new Date},Ia=function(a,b){return a.frame-b.frame},Ja=0,Ka=1,La="down",Ma=-1,Na=Ha(),Oa=0,Pa=0,Qa=!1,Ra=0,Sa=!1,Ta=0,Ua=[];"function"==typeof define&&define.amd?define([],function(){return g}):"undefined"!=typeof module&&module.exports?module.exports=g:a.skrollr=g}(window,document);
(function($){
jQuery(document).ready(function(){
function version_compare(strVersionA, strVersionB){
var arrVersionA=strVersionA.split('.');
var arrVersionB=strVersionB.split('.');
var intVersionA=(100000000 * parseInt(arrVersionA[0])) + (1000000 * parseInt(arrVersionA[1])) + (10000 * parseInt(arrVersionA[2]));
var intVersionB=(100000000 * parseInt(arrVersionB[0])) + (1000000 * parseInt(arrVersionB[1])) + (10000 * parseInt(arrVersionB[2]));
if(intVersionA > intVersionB){
return 1;
}else if(intVersionA < intVersionB){
return -1;
}else{
return 0;
}
return false;
}
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
$('html').addClass('ult-remove-fixed-background');
}
jQuery(window).scroll(function(){
vc_viewport_video();
});
jQuery(window).load(function(){
vc_viewport_video();
});
function vc_viewport_video(){
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))
return false;
jQuery('.enable-on-viewport').each(function(index, element){
var is_on_viewport=jQuery(this).isVdoOnScreen();
if(jQuery(this).hasClass('hosted-video')&&(!jQuery(this).hasClass('override-controls'))){
if(is_on_viewport){
jQuery(this)[0].play();
jQuery(this).parent().parent().parent().find('.video-controls').attr('data-action','play');
jQuery(this).parent().parent().parent().find('.video-controls').html('');
}else{
jQuery(this)[0].pause();
jQuery(this).parent().parent().parent().find('.video-controls').attr('data-action','pause');
jQuery(this).parent().parent().parent().find('.video-controls').html('');
}}
});
}
function ultHexToRgb(hex){
var shorthandRegex=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;
hex=hex.replace(shorthandRegex, function(m, r, g, b){
return r + r + g + g + b + b;
});
var result=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
return result ? {
r: parseInt(result[1], 16),
g: parseInt(result[2], 16),
b: parseInt(result[3], 16)
}:null;
}
function ult_vc_seperators(selector, parent){
var seperator=selector.data('seperator');
var seperator_type=selector.data('seperator-type');
var seperator_shape_size=selector.data('seperator-shape-size');
var seperator_background_color=selector.data('seperator-background-color');
var seperator_border=selector.data('seperator-border');
var seperator_border_color=selector.data('seperator-border-color');
var seperator_border_width=selector.data('seperator-border-width');
var seperator_svg_height=selector.data('seperator-svg-height');
var seperator_full_width=selector.data('seperator-full-width');
var seperator_position=selector.data('seperator-position');
if(typeof seperator_position=='undefined'||seperator_position=='')
seperator_position='top_seperator';
var icon=selector.data('icon');
if(typeof icon=='undefined')
icon='';
else
icon='
'+icon+'
';
var seperator_css_main=seperator_class=seperator_border_css=seperator_border_line_css=seperator_css='';
if(typeof seperator!='undefined'&&seperator.toString()=='true'){
var css=shape_css=svg=inner_html=seperator_css=shape_css='';
var is_svg=false;
var uniqid=Math.floor(Math.random()*9999999999999);
var uniqclass='uvc-seperator-'+uniqid;
if(typeof seperator_shape_size=='undefined'||seperator_shape_size==''||seperator_shape_size=='undefined')
seperator_shape_size=0;
seperator_shape_size=parseInt(seperator_shape_size);
var half_shape=seperator_shape_size/2;
var half_border=0;
if(seperator_type=='triangle_seperator')
seperator_class='ult-trinalge-seperator';
else if(seperator_type=='circle_seperator')
seperator_class='ult-circle-seperator';
else if(seperator_type=='diagonal_seperator')
seperator_class='ult-double-diagonal';
else if(seperator_type=='triangle_svg_seperator'){
seperator_class='ult-svg-triangle';
svg='';
is_svg=true;
}
else if(seperator_type=='circle_svg_seperator'){
seperator_class='ult-svg-circle';
svg='';
is_svg=true;
}
else if(seperator_type=='xlarge_triangle_seperator'){
seperator_class='ult-xlarge-triangle';
svg='';
is_svg=true;
}
else if(seperator_type=='xlarge_triangle_left_seperator'){
seperator_class='ult-xlarge-triangle-left';
svg='';
is_svg=true;
}
else if(seperator_type=='xlarge_triangle_right_seperator'){
seperator_class='ult-xlarge-triangle-right';
svg='';
is_svg=true;
}
else if(seperator_type=='xlarge_circle_seperator'){
seperator_class='ult-xlarge-circle';
svg='';
is_svg=true;
}
else if(seperator_type=='curve_up_seperator'){
seperator_class='ult-curve-up-seperator';
svg='';
is_svg=true;
}
else if(seperator_type=='curve_down_seperator'){
seperator_class='ult-curve-down-seperator';
svg='';
is_svg=true;
}
else if(seperator_type=='tilt_left_seperator'){
seperator_class='ult-tilt-left-seperator';
svg='';
is_svg=true;
}
else if(seperator_type=='tilt_right_seperator'){
seperator_class='ult-tilt-right-seperator';
svg='';
is_svg=true;
}
else if(seperator_type=='waves_seperator'){
seperator_class='ult-wave-seperator';
svg='';
is_svg=true;
}
else if(seperator_type=='clouds_seperator'){
seperator_class='ult-cloud-seperator';
svg='';
is_svg=true;
}
else if(seperator_type=='multi_triangle_seperator'){
seperator_class='ult-multi-trianle';
var rgb=ultHexToRgb(seperator_background_color);
svg='';
is_svg=true;
}
else if(seperator_type=='round_split_seperator'){
var temp_css=temp_border_before=temp_border_after=temp_border_line='';
temp_padding=0;
seperator_class='ult-rounded-split-seperator-wrapper';
var row_height=jQuery(selector).outerHeight();
if(seperator_shape_size!=0){
var prev_padding=parseInt(jQuery(selector).css('padding-bottom'));
jQuery(selector).css({'padding-bottom':seperator_shape_size+'px'});
if(prev_padding==0)
temp_padding=seperator_shape_size;
}
if(seperator_position=='top_seperator'){
var eclass='top-split-seperator';
var etop='0px';
var ebottom='auto';
var border_radius_before='border-radius: 0 0 '+seperator_shape_size+'px 0 !important;';
var border_radius_after='border-radius: 0 0 0 '+seperator_shape_size+'px !important;';
}
else if(seperator_position=='bottom_seperator'){
var eclass='bottom-split-seperator';
var etop='auto';
var ebottom='0px';
var border_radius_before='border-radius: 0 '+seperator_shape_size+'px 0 0 !important;';
var border_radius_after='border-radius: '+seperator_shape_size+'px 0 0 0 !important;';
}else{
var eclass='top-bottom-split-seperator';
var etop_top='0px';
var ebottom_top='auto';
var etop_bottom='auto';
var ebottom_bottom='0px';
var border_radius_before_top='border-radius: 0 0 '+seperator_shape_size+'px 0 !important;';
var border_radius_after_top='border-radius: 0 0 0 '+seperator_shape_size+'px !important;';
var border_radius_before_bottom='border-radius: 0 '+seperator_shape_size+'px 0 0 !important;';
var border_radius_after_bottom='border-radius: '+seperator_shape_size+'px 0 0 0 !important;';
}
inner_html='';
if(seperator_border!='none'){
temp_border_line=seperator_border_width+'px '+seperator_border+' '+seperator_border_color;
temp_border_before='border-top: '+temp_border_line+'; border-right: '+temp_border_line+';';
temp_border_after='border-top: '+temp_border_line+'; border-left: '+temp_border_line+';';
}
if(seperator_position=='top_seperator'||seperator_position=='bottom_seperator'){
temp_css='';
jQuery('head').append(temp_css);
}else{
temp_css='';
temp_css_bottom='';
jQuery('head').append(temp_css+temp_css_bottom);
}}
else
seperator_class='ult-no-shape-seperator';
if(typeof seperator_border_width!='undefined'&&seperator_border_width!=''&&seperator_border_width!=0){
half_border=parseInt(seperator_border_width);
}
shape_css='content: "";width:'+seperator_shape_size+'px; height:'+seperator_shape_size+'px; bottom: -'+(half_shape+half_border)+'px;';
if(seperator_background_color!='')
shape_css +='background-color:'+seperator_background_color+';';
if(seperator_border!='none'&&seperator_class!='ult-rounded-split-seperator-wrapper'&&is_svg==false){
seperator_border_line_css=seperator_border_width+'px '+seperator_border+' '+seperator_border_color;
shape_css +='border-bottom:'+seperator_border_line_css+'; border-right:'+seperator_border_line_css+';';
seperator_css +='border-bottom:'+seperator_border_line_css+';';
seperator_css_main='bottom:'+seperator_border_width+'px !important';
}
if(seperator_class!='ult-no-shape-seperator'&&seperator_class!='ult-rounded-split-seperator-wrapper'&&is_svg==false){
var css='';
jQuery('head').append(css);
}
if(is_svg==true){
inner_html=svg;
}
if(seperator_position=='top_bottom_seperator'){
var seperator_html='
'+inner_html+'
'+icon+'
';
seperator_html +='
'+inner_html+'
'+icon+'
';
}else{
var seperator_html='
'+inner_html+'
'+icon+'
';
}
parent.prepend(seperator_html);
seperator_css='';
if(seperator_css_main!=''){
seperator_css_main='';
seperator_css +=seperator_css_main;
}
if(icon!=''){
var t=seperator_svg_height/2;
if(seperator_type=='none_seperator'||seperator_type=='circle_svg_seperator'||seperator_type=='triangle_svg_seperator')
seperator_css +='';
else
{
seperator_css +='';
}}
if(is_svg==true){
jQuery('.'+uniqclass).find('svg').css('height',seperator_svg_height);
setTimeout(function(){
if(seperator_type=='multi_triangle_seperator'){
jQuery('.ult-multi-trianle').each(function(i,mt){
var svg_height=$(mt).find('svg').height();
if($(mt).hasClass('top_seperator')){
}
else if($(mt).hasClass('bottom_seperator')){
$(mt).css('bottom',(svg_height-1));
}});
}},300);
}
jQuery('head').append(seperator_css);
}
}
jQuery.fn.isVdoOnScreen=function(){
var win=jQuery(window);
var viewport={
top:win.scrollTop(),
left:win.scrollLeft()
};
viewport.right=viewport.left + win.width();
viewport.bottom=viewport.top + win.height()-200;
var bounds=this.parent().offset();
bounds.right=bounds.left + this.parent().outerWidth();
bounds.bottom=bounds.top + this.parent().outerHeight()-300;
return (!(viewport.right < bounds.left||viewport.left > bounds.right||viewport.bottom < bounds.top||viewport.top > bounds.bottom));
};
jQuery.fn.ultimate_video_bg=function(option){
jQuery(this).each(function(){
var selector=jQuery(this);
var vdo=selector.data('ultimate-video');
var vdo2=selector.data('ultimate-video2');
var muted=selector.data('ultimate-video-muted');
var loop=selector.data('ultimate-video-loop');
var autoplay=selector.data('ultimate-video-autoplay');
var poster=selector.data('ultimate-video-poster');
var ride=selector.data('bg-override');
var start=selector.data('start-time');
var stop=selector.data('stop-time');
var anim_style=selector.data('upb-bg-animation');
var overlay=selector.data('overlay');
var overlay_color=selector.data('overlay-color');
var overlay_pattern=selector.data('overlay-pattern');
var overlay_pattern_opacity=selector.data('overlay-pattern-opacity');
var overlay_pattern_size=selector.data('overlay-pattern-size');
var overlay_pattern_attachment=selector.data('overlay-pattern-attachment');
var viewport_vdo=selector.data('viewport-video');
var controls=selector.data('controls');
var controls_color=selector.data('controls-color');
var fadeout=selector.data('fadeout');
var fadeout_percentage=selector.data('fadeout-percentage');
var parallax_content=selector.data('parallax-content');
var parallax_content_sense=selector.data('parallax-content-sense');
var disble_mobile=selector.data('row-effect-mobile-disable');
var hide_row=selector.data('hide-row');
var rtl=selector.data('rtl');
var video_fixer=selector.data('video_fixer');
var multi_color_overlay='';
var multi_color_overlay_opacity='';
var vc_row_class=selector.data('custom-vc-row');
var vc=selector.data('vc');
var theme_support=selector.data('theme-support');
var is_vc_4_4=selector.data('is_old_vc');
if(typeof vc_row_class==='undefined'||vc_row_class==='')
vc_row_class='wpb_row';
if(typeof vc==='undefined')
vc=0;
if(typeof is_vc_4_4==='undefined')
is_vc_4_4=false;
if(typeof theme_support==='undefined')
theme_support='disable';
if(selector.data('multi-color-overlay')){
multi_color_overlay=selector.data('multi-color-overlay');
multi_color_overlay_opacity=selector.data('multi-color-overlay-opacity');
}
var overlay_html=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css='';
if(typeof overlay!='undefined'&&overlay.toString()==='true'){
if(overlay_pattern!=''){
if(overlay_pattern_size!='')
overlay_pattern_size='background-size:'+overlay_pattern_size+'px;';
if(typeof overlay_pattern_attachment!='undefined'&&overlay_pattern_attachment!='')
overlay_pattern_attachment_css='background-attachment:'+overlay_pattern_attachment+';';
overlay_pattern_html='';
}
if(overlay_color!='')
overlay_color_html='';
if(multi_color_overlay!='')
overlay_multi_color_html='';
overlay_html=overlay_color_html+overlay_pattern_html+overlay_multi_color_html;
}
if(stop!=0){
stop=stop;
}else{
stop='';
}
if(is_vc_4_4==true||theme_support=='enable'){
if(selector.prev().is('p')||selector.prev().is('style'))
var parent=selector.prev().prev();
else
var parent=selector.prev();
}else{
var parent=selector.prevAll('.'+vc_row_class+':first');
}
parent.css('position','relative');
var current_row_classes=parent.attr('class');
var temp_selector=selector;
selector=parent;
var resizee=function(){
var w,h,ancenstor,al='',bl='';
ancenstor=selector;
resize_selector=ancenstor.find('.upb_video-bg');
if(ride=='full'){
ancenstor=jQuery('body');
}
if(ride=='ex-full'){
ancenstor=jQuery('html');
}
if(! isNaN(ride)){
for(var i=0;i';
}
if(ride=="browser_size"){
selector.wrapInner('
');
selector.find('.upb_video-text-wrapper').find('.upb_video-text').addClass(current_row_classes);
}
if(parallax_content=='parallax_content_value'){
selector.addClass('vc-row-translate');
selector.attr('data-parallax-content-sense', parallax_content_sense);
selector.wrapInner('');
var ptop=selector.css('padding-top');
var pbottom=selector.css('padding-bottom');
selector.find('.vc-row-translate-wrapper').css({'padding-top':ptop, 'padding-bottom':pbottom});
selector[0].style.setProperty('padding-top', '0px', 'important');
selector[0].style.setProperty('padding-bottom', '0px', 'important');
}
var fixer_class='';
if(video_fixer.toString()=='true')
fixer_class='uvc-video-fixer';
if(option=='youtube'||option=='vimeo'){
selector.prepend('
'+overlay_html+'
');
}else{
selector.prepend('
'+control_html+overlay_html+'
');
}
ult_vc_seperators(temp_selector, selector);
temp_selector.remove();
if(option=='youtube'){
vdo=vdo.substring((vdo.indexOf('watch?v='))+8,(vdo.indexOf('watch?v='))+19);
var content=selector.find('.upb_video-bg');
if(loop=='loop') loop=true;
if(muted=='muted') muted=true;
content.attr('data-vdo',vdo);content.attr('data-loop',loop);content.attr('data-poster',poster);
content.attr('data-muted',muted);content.attr('data-start',start);content.attr('data-stop',stop);
if(viewport_vdo===true){
content.addClass('enable-on-viewport');
content.addClass('youtube-video');
vc_viewport_video();
}}else if(option=='vimeo'){
vdo=vdo.substring((vdo.indexOf('vimeo.com/'))+10,(vdo.indexOf('vimeo.com/'))+18);
var content=selector.find('.upb_video-bg');
content.html('')
}else{
var content=selector.find('.upb_video-src');
hosted_wrapper=content.parent();
if(! /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||controls=='display_control'){
jQuery('', {
type: 'video/mp4',
src: vdo
}).appendTo(content);
if(typeof vdo2!=='undefined'&&vdo2!==''){
var vdo2_type='';
if(vdo2.match(/.ogg/i))
vdo2_type='video/ogg';
else if(vdo2.match(/.webm/i))
vdo2_type='video/webm';
if(vdo2_type!=''){
jQuery('', {
type: vdo2_type,
src: vdo2
}).appendTo(content);
}}
if(muted=='muted'){
content.attr({'data-mute':'muted'});
}
if(loop=='loop'){ content.attr({'loop':loop});}
content.attr({'preload':'auto'});
if(viewport_vdo===true){
content.addClass('enable-on-viewport');
content.addClass('hosted-video');
vc_viewport_video();
}else{
if(autoplay=='autoplay'){ content.attr({'autoplay':autoplay});}}
}else{
if(controls!='display_control'){
if(poster!=''){
content.parent().find('.video-controls').hide();
}
content.remove();
}}
}
if(poster!=''){
if(content.is('.utube')){
content.css({'background-image':'url('+poster+')'});
}else{
hosted_wrapper.css({'background-image':'url('+poster+')'});
}}
jQuery('.upb_video-src').each(function(i,vd){
var is_muted=jQuery(vd).attr('data-mute');
if(typeof is_muted==='undefined')
is_muted=false;
if(is_muted==='muted'){
var element=jQuery(vd)[0];
element.muted="muted";
}});
});
return this;
}
jQuery.fn.ultimate_bg_shift=function(){
jQuery(this).each(function(){
var selector=jQuery(this);
var bg=selector.data('ultimate-bg');
var style=selector.data('ultimate-bg-style');
var bg_color=selector.prev().css('background-color');
var rep=selector.data('bg-img-repeat');
var size=selector.data('bg-img-size');
var pos=selector.data('bg-img-position');
var sense=selector.data('parallx_sense');
var ride=selector.data('bg-override');
var attach=selector.data('bg_img_attach');
var anim_style=selector.data('upb-bg-animation');
var al,bl,overlay_color='';
var overlay=selector.data('overlay');
var overlay_color=selector.data('overlay-color');
var overlay_pattern=selector.data('overlay-pattern');
var overlay_pattern_opacity=selector.data('overlay-pattern-opacity');
var overlay_pattern_size=selector.data('overlay-pattern-size');
var overlay_pattern_attachment=selector.data('overlay-pattern-attachment');
var fadeout=selector.data('fadeout');
var fadeout_percentage=selector.data('fadeout-percentage');
var parallax_content=selector.data('parallax-content');
var parallax_content_sense=selector.data('parallax-content-sense');
var animation=selector.data('bg-animation');
var animation_type=selector.data('bg-animation-type');
var animation_repeat=selector.data('animation-repeat');
var disble_mobile=selector.data('row-effect-mobile-disable');
var disble_mobile_img_parallax=selector.data('img-parallax-mobile-disable');
var hide_row=selector.data('hide-row');
var rtl=selector.data('rtl');
var multi_color_overlay='';
var multi_color_overlay_opacity='';
var vc_row_class=selector.data('custom-vc-row');
var vc=selector.data('vc');
var theme_support=selector.data('theme-support');
var is_vc_4_4=selector.data('is_old_vc');
if(typeof vc_row_class==='undefined'||vc_row_class==='')
vc_row_class='wpb_row';
if(typeof vc==='undefined')
vc=0;
if(typeof is_vc_4_4==='undefined')
is_vc_4_4=false;
if(typeof theme_support==='undefined')
theme_support='disable';
if(selector.data('multi-color-overlay')){
multi_color_overlay=selector.data('multi-color-overlay');
multi_color_overlay_opacity=selector.data('multi-color-overlay-opacity');
}
var overlay_html=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css='';
if(typeof overlay!='undefined'&&overlay.toString()==='true'){
if(overlay_pattern!=''){
if(overlay_pattern_size!='')
overlay_pattern_size='background-size:'+overlay_pattern_size+'px;';
if(typeof overlay_pattern_attachment!='undefined'&&overlay_pattern_attachment!='')
overlay_pattern_attachment_css='background-attachment:'+overlay_pattern_attachment+';';
overlay_pattern_html='';
}
if(overlay_color!='')
overlay_color_html='';
if(multi_color_overlay!='')
overlay_multi_color_html='';
overlay_html=overlay_color_html+overlay_pattern_html+overlay_multi_color_html;
}
if(is_vc_4_4==true||theme_support=='enable'){
if(selector.prev().is('p')||selector.prev().is('style'))
var parent=selector.prev().prev();
else
var parent=selector.prev();
}else{
var parent=selector.prevAll('.'+vc_row_class+':first');
}
parent.css('position','relative');
var current_row_classes=parent.attr('class');
if(ride=="browser_size"){
parent.wrapInner('
');
ult_vc_seperators(selector, parent);
selector=parent;
selector.attr('data-row-effect-mobile-disable',disble_mobile);
if(fadeout=='fadeout_row_value'){
selector.addClass('vc-row-fade');
selector.attr('data-fadeout-percentage',fadeout_percentage);
}
selector.css('background-image','');
selector=selector.find('.upb_row_bg');
selector.attr('data-upb_br_animation',anim_style);
grad=grad.replace('url(data:image/svg+xml;base64,','');
var e_pos=grad.indexOf(';');
grad=grad.substring(e_pos+1);
selector.attr('style',grad);
selector.attr('data-bg-override',ride);
if(ride=='browser_size')
selector.parent().find('.upb-background-text-wrapper').addClass('full-browser-size');
var resize=function(){
var w,h,ancenstor,al,bl;
ancenstor=selector.parent();
if(ride=='full'){
ancenstor=jQuery('body');
al=0;
}
if(ride=='ex-full'){
ancenstor=jQuery('html');
al=0;
}
if(! isNaN(ride)){
for(var i=0;i wh)
wh=fbh;
selector.parent().css('height',wh+'px');
selector.parent().find('.upb-background-text-wrapper').css('height',wh+'px');
}}
resize();
jQuery(window).load(function(){
resize();
});
jQuery(window).resize(function(){
resize();
});
})
return this;
}
jQuery.fn.ultimate_bg_color_shift=function(){
jQuery(this).each(function(){
var selector=jQuery(this);
var ride=jQuery(this).data('bg-override');
var bg_color=jQuery(this).data('bg-color');
var fadeout=selector.data('fadeout');
var fadeout_percentage=selector.data('fadeout-percentage');
var parallax_content=selector.data('parallax-content');
var parallax_content_sense=selector.data('parallax-content-sense');
var disble_mobile=selector.data('row-effect-mobile-disable');
var overlay=selector.data('overlay');
var overlay_color=selector.data('overlay-color');
var overlay_pattern=selector.data('overlay-pattern');
var overlay_pattern_opacity=selector.data('overlay-pattern-opacity');
var overlay_pattern_size=selector.data('overlay-pattern-size');
var overlay_pattern_attachment=selector.data('overlay-pattern-attachment');
var hide_row=selector.data('hide-row');
var rtl=selector.data('rtl');
var multi_color_overlay='';
var multi_color_overlay_opacity='';
var vc=selector.data('vc');
var theme_support=selector.data('theme-support');
var vc_row_class=selector.data('custom-vc-row');
var is_vc_4_4=selector.data('is_old_vc');
if(typeof vc_row_class==='undefined'||vc_row_class==='')
vc_row_class='wpb_row';
if(typeof vc==='undefined')
vc=0;
if(typeof is_vc_4_4==='undefined')
is_vc_4_4=false;
if(typeof theme_support==='undefined')
theme_support='disable';
if(selector.data('multi-color-overlay')){
multi_color_overlay=selector.data('multi-color-overlay');
multi_color_overlay_opacity=selector.data('multi-color-overlay-opacity');
}
if(is_vc_4_4==true||theme_support=='enable'){
if(selector.prev().is('p')||selector.prev().is('style'))
var parent=selector.prev().prev();
else
var parent=selector.prev();
}else{
var parent=selector.prevAll('.'+vc_row_class+':first');
}
parent.css('position','relative');
var current_row_classes=parent.attr('class');
var overlay_html=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css='';
if(typeof overlay!='undefined'&&overlay.toString()==='true'){
if(overlay_pattern!=''){
if(overlay_pattern_size!='')
overlay_pattern_size='background-size:'+overlay_pattern_size+'px;';
if(typeof overlay_pattern_attachment!='undefined'&&overlay_pattern_attachment!='')
overlay_pattern_attachment_css='background-attachment:'+overlay_pattern_attachment+';';
overlay_pattern_html='';
}
if(overlay_color!='')
overlay_color_html='';
if(multi_color_overlay!='')
overlay_multi_color_html='';
overlay_html=overlay_color_html+overlay_pattern_html+overlay_multi_color_html;
}
if(ride=="browser_size"){
parent.wrapInner('